#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "option.h"
#include <qtranslator.h>
#include <qtextbrowser.h>
#include "newgame.h"
namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    Option opt;
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
	void setApp(QApplication *p);
private:
    Ui::MainWindow *ui;
    bool nowtimer;
	QString s,lans;
	QApplication *app;
	QTranslator t;
    QTextBrowser help;
	NewGame *ngame;
	void moveEvent(QMoveEvent *);

public slots:
	void onstart();
	void startWidget();
    void changetimer();
    void stoptimer();
	void ontrans(QString lan);
private slots:
    void on_actionHelp_triggered();
    void on_actionAbout_triggered();
    void on_actionOptions_triggered();
    void on_actionExit_triggered();
    void on_actionNew_triggered();
	void on_pushButton_talk_clicked();
	void on_pushButton_clicked();
};

#endif // MAINWINDOW_H
